<template>
  <div class="wait">
    <img src="../../..//assets/401_images/401.gif" />
    <el-link class="title" type="danger">很遗憾！您的申请未通过！退出登陆，或者重新申请</el-link>
    <div class="boom">
      <el-link type="primary" @click="handlechange">重新申请</el-link>
      <el-link type="primary">退出登陆</el-link>
    </div>
  </div>
</template>

<script>
import { mapState } from "vuex";
import { changeStatus } from "@/api/admin";
export default {
  computed: {
    ...mapState("user", ["_id"])
  },
  methods: {
    handlechange() {
      changeStatus(this._id,{status:0}).then(res=>{
        if (res.data.ok) {
          this.$router.replace("/home")
        }
        
      })
    }
  }
};
</script>

<style scoped>
.wait {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.title {
  margin-top: 10px;
}
.boom {
  position: absolute;
  top: 0;
}
</style>